.class final Lcom/mobisage/android/H;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field private static a:Lcom/mobisage/android/H;


# instance fields
.field private b:Ljava/util/concurrent/ConcurrentHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentHashMap",
            "<",
            "Ljava/lang/Integer;",
            "Ljava/util/concurrent/ConcurrentLinkedQueue",
            "<",
            "Lcom/mobisage/android/MobiSageMessage;",
            ">;>;"
        }
    .end annotation
.end field

.field private c:Ljava/util/concurrent/ConcurrentHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentHashMap",
            "<",
            "Ljava/util/UUID;",
            "Lcom/mobisage/android/N;",
            ">;"
        }
    .end annotation
.end field

.field private d:Ljava/util/concurrent/ConcurrentHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentHashMap",
            "<",
            "Ljava/lang/String;",
            "Lcom/mobisage/android/K;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 17
    new-instance v0, Lcom/mobisage/android/H;

    invoke-direct {v0}, Lcom/mobisage/android/H;-><init>()V

    sput-object v0, Lcom/mobisage/android/H;->a:Lcom/mobisage/android/H;

    return-void
.end method

.method private constructor <init>()V
    .locals 3

    .prologue
    .line 26
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 27
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    .line 28
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    .line 29
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    const/4 v1, 0x1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    new-instance v2, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v2}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 30
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    const/4 v1, 0x2

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    new-instance v2, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v2}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 31
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    const/4 v1, 0x3

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    new-instance v2, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v2}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 32
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    const/4 v1, 0x0

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    new-instance v2, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v2}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 34
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Lcom/mobisage/android/H;->d:Ljava/util/concurrent/ConcurrentHashMap;

    .line 35
    return-void
.end method

.method public static a()Lcom/mobisage/android/H;
    .locals 1

    .prologue
    .line 23
    sget-object v0, Lcom/mobisage/android/H;->a:Lcom/mobisage/android/H;

    return-object v0
.end method

.method private b()V
    .locals 7

    .prologue
    const/16 v6, 0x10

    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 136
    iget-object v0, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentHashMap;->size()I

    move-result v0

    if-lt v0, v6, :cond_1

    move v0, v4

    .line 137
    :goto_0
    if-nez v0, :cond_4

    .line 145
    :cond_0
    :goto_1
    return-void

    .line 136
    :cond_1
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    :cond_2
    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->size()I

    move-result v1

    if-eqz v1, :cond_3

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->poll()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/mobisage/android/MobiSageMessage;

    if-eqz v1, :cond_2

    invoke-virtual {v1}, Lcom/mobisage/android/MobiSageMessage;->createMessageRunnable()Ljava/lang/Runnable;

    move-result-object v2

    check-cast v2, Lcom/mobisage/android/N;

    iget-object v3, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, v1, Lcom/mobisage/android/MobiSageMessage;->c:Ljava/util/UUID;

    invoke-virtual {v3, v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v1, Ljava/lang/Thread;

    invoke-direct {v1, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    iget-object v1, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v1}, Ljava/util/concurrent/ConcurrentHashMap;->size()I

    move-result v1

    if-lt v1, v6, :cond_2

    move v0, v4

    goto :goto_0

    :cond_3
    move v0, v5

    goto :goto_0

    .line 139
    :cond_4
    invoke-direct {p0}, Lcom/mobisage/android/H;->c()Z

    move-result v0

    .line 140
    if-eqz v0, :cond_0

    .line 142
    invoke-direct {p0}, Lcom/mobisage/android/H;->d()Z

    move-result v0

    .line 143
    if-nez v0, :cond_0

    goto :goto_1
.end method

.method private c()Z
    .locals 6

    .prologue
    const/16 v5, 0xc

    const/4 v4, 0x0

    .line 170
    iget-object v0, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentHashMap;->size()I

    move-result v0

    if-lt v0, v5, :cond_0

    move v0, v4

    .line 186
    :goto_0
    return v0

    .line 173
    :cond_0
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    const/4 v1, 0x2

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    .line 174
    :cond_1
    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->size()I

    move-result v1

    if-eqz v1, :cond_2

    .line 175
    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->poll()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/mobisage/android/MobiSageMessage;

    .line 176
    if-eqz v1, :cond_1

    .line 177
    invoke-virtual {v1}, Lcom/mobisage/android/MobiSageMessage;->createMessageRunnable()Ljava/lang/Runnable;

    move-result-object v2

    check-cast v2, Lcom/mobisage/android/N;

    .line 179
    iget-object v3, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, v1, Lcom/mobisage/android/MobiSageMessage;->c:Ljava/util/UUID;

    invoke-virtual {v3, v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 181
    new-instance v1, Ljava/lang/Thread;

    invoke-direct {v1, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 182
    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    .line 183
    iget-object v1, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v1}, Ljava/util/concurrent/ConcurrentHashMap;->size()I

    move-result v1

    if-lt v1, v5, :cond_1

    move v0, v4

    .line 184
    goto :goto_0

    .line 186
    :cond_2
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private d()Z
    .locals 6

    .prologue
    const/16 v5, 0xc

    const/4 v4, 0x0

    .line 190
    iget-object v0, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentHashMap;->size()I

    move-result v0

    if-lt v0, v5, :cond_0

    move v0, v4

    .line 206
    :goto_0
    return v0

    .line 193
    :cond_0
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    const/4 v1, 0x3

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    .line 194
    :cond_1
    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->size()I

    move-result v1

    if-eqz v1, :cond_2

    .line 195
    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->poll()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/mobisage/android/MobiSageMessage;

    .line 196
    if-eqz v1, :cond_1

    .line 197
    invoke-virtual {v1}, Lcom/mobisage/android/MobiSageMessage;->createMessageRunnable()Ljava/lang/Runnable;

    move-result-object v2

    check-cast v2, Lcom/mobisage/android/N;

    .line 199
    iget-object v3, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, v1, Lcom/mobisage/android/MobiSageMessage;->c:Ljava/util/UUID;

    invoke-virtual {v3, v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 201
    new-instance v1, Ljava/lang/Thread;

    invoke-direct {v1, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 202
    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    .line 203
    iget-object v1, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v1}, Ljava/util/concurrent/ConcurrentHashMap;->size()I

    move-result v1

    if-lt v1, v5, :cond_1

    move v0, v4

    .line 204
    goto :goto_0

    .line 206
    :cond_2
    const/4 v0, 0x1

    goto :goto_0
.end method


# virtual methods
.method public final a(Lcom/mobisage/android/MobiSageMessage;)V
    .locals 4
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    iget v1, p1, Lcom/mobisage/android/MobiSageMessage;->b:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 67
    :goto_0
    return-void

    .line 60
    :cond_0
    iget v0, p1, Lcom/mobisage/android/MobiSageMessage;->b:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_4

    .line 61
    check-cast p1, Lcom/mobisage/android/MobiSageResMessage;

    new-instance v0, Ljava/io/File;

    iget-object v1, p1, Lcom/mobisage/android/MobiSageResMessage;->targetURL:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p1, Lcom/mobisage/android/MobiSageResMessage;->result:Landroid/os/Bundle;

    const-string v2, "StatusCode"

    const/16 v3, 0xc8

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/io/File;->setLastModified(J)Z

    iget-object v0, p1, Lcom/mobisage/android/MobiSageResMessage;->callback:Lcom/mobisage/android/IMobiSageMessageCallback;

    if-eqz v0, :cond_1

    iget-object v0, p1, Lcom/mobisage/android/MobiSageResMessage;->callback:Lcom/mobisage/android/IMobiSageMessageCallback;

    invoke-interface {v0, p1}, Lcom/mobisage/android/IMobiSageMessageCallback;->onMobiSageMessageFinish(Lcom/mobisage/android/MobiSageMessage;)V

    .line 66
    :cond_1
    :goto_1
    invoke-direct {p0}, Lcom/mobisage/android/H;->b()V

    goto :goto_0

    .line 61
    :cond_2
    iget-object v0, p0, Lcom/mobisage/android/H;->d:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, p1, Lcom/mobisage/android/MobiSageResMessage;->sourceURL:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/mobisage/android/H;->d:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, p1, Lcom/mobisage/android/MobiSageResMessage;->sourceURL:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/mobisage/android/K;

    iget-object v0, v0, Lcom/mobisage/android/K;->a:Ljava/util/concurrent/LinkedBlockingQueue;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/LinkedBlockingQueue;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_3
    new-instance v1, Lcom/mobisage/android/K;

    invoke-direct {v1}, Lcom/mobisage/android/K;-><init>()V

    iget-object v0, p1, Lcom/mobisage/android/MobiSageResMessage;->sourceURL:Ljava/lang/String;

    iput-object v0, v1, Lcom/mobisage/android/K;->sourceURL:Ljava/lang/String;

    iget-object v0, p1, Lcom/mobisage/android/MobiSageResMessage;->tempURL:Ljava/lang/String;

    iput-object v0, v1, Lcom/mobisage/android/K;->tempURL:Ljava/lang/String;

    iget-object v0, p1, Lcom/mobisage/android/MobiSageResMessage;->targetURL:Ljava/lang/String;

    iput-object v0, v1, Lcom/mobisage/android/K;->targetURL:Ljava/lang/String;

    iget-object v0, v1, Lcom/mobisage/android/K;->a:Ljava/util/concurrent/LinkedBlockingQueue;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/LinkedBlockingQueue;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    iget v2, p1, Lcom/mobisage/android/MobiSageResMessage;->b:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/mobisage/android/H;->d:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v2, p1, Lcom/mobisage/android/MobiSageResMessage;->sourceURL:Ljava/lang/String;

    invoke-virtual {v0, v2, v1}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    .line 63
    :cond_4
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    iget v1, p1, Lcom/mobisage/android/MobiSageMessage;->b:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    .line 64
    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z

    goto :goto_1
.end method

.method public final b(Lcom/mobisage/android/MobiSageMessage;)V
    .locals 3
    .parameter

    .prologue
    .line 96
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    iget v1, p1, Lcom/mobisage/android/MobiSageMessage;->b:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 113
    :goto_0
    return-void

    .line 99
    :cond_0
    iget v0, p1, Lcom/mobisage/android/MobiSageMessage;->b:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_3

    .line 100
    check-cast p1, Lcom/mobisage/android/MobiSageResMessage;

    iget-object v0, p0, Lcom/mobisage/android/H;->d:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, p1, Lcom/mobisage/android/MobiSageResMessage;->sourceURL:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/mobisage/android/H;->d:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, p1, Lcom/mobisage/android/MobiSageResMessage;->sourceURL:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/mobisage/android/K;

    iget-object v1, v0, Lcom/mobisage/android/K;->a:Ljava/util/concurrent/LinkedBlockingQueue;

    invoke-virtual {v1, p1}, Ljava/util/concurrent/LinkedBlockingQueue;->remove(Ljava/lang/Object;)Z

    iget-object v1, v0, Lcom/mobisage/android/K;->a:Ljava/util/concurrent/LinkedBlockingQueue;

    invoke-virtual {v1}, Ljava/util/concurrent/LinkedBlockingQueue;->size()I

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/mobisage/android/H;->d:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v1, v0}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v1, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    iget v2, p1, Lcom/mobisage/android/MobiSageResMessage;->b:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-virtual {v1, v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-virtual {v1, v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->remove(Ljava/lang/Object;)Z

    .line 112
    :cond_1
    :goto_1
    invoke-direct {p0}, Lcom/mobisage/android/H;->b()V

    goto :goto_0

    .line 100
    :cond_2
    iget-object v1, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v2, v0, Lcom/mobisage/android/K;->c:Ljava/util/UUID;

    invoke-virtual {v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/mobisage/android/N;

    invoke-virtual {v1}, Lcom/mobisage/android/N;->a()V

    iget-object v1, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v0, v0, Lcom/mobisage/android/K;->c:Ljava/util/UUID;

    invoke-virtual {v1, v0}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    .line 102
    :cond_3
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    iget v1, p1, Lcom/mobisage/android/MobiSageMessage;->b:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    .line 104
    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 105
    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->remove(Ljava/lang/Object;)Z

    goto :goto_1

    .line 106
    :cond_4
    iget-object v0, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, p1, Lcom/mobisage/android/MobiSageMessage;->c:Ljava/util/UUID;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 107
    iget-object v0, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, p1, Lcom/mobisage/android/MobiSageMessage;->c:Ljava/util/UUID;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/mobisage/android/N;

    .line 108
    invoke-virtual {v0}, Lcom/mobisage/android/N;->a()V

    .line 109
    iget-object v0, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, p1, Lcom/mobisage/android/MobiSageMessage;->c:Ljava/util/UUID;

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1
.end method

.method final c(Lcom/mobisage/android/MobiSageMessage;)V
    .locals 4
    .parameter

    .prologue
    .line 214
    iget v1, p1, Lcom/mobisage/android/MobiSageMessage;->b:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_0

    .line 215
    move-object v0, p1

    check-cast v0, Lcom/mobisage/android/MobiSageResMessage;

    move-object v1, v0

    .line 216
    iget-object v2, p0, Lcom/mobisage/android/H;->d:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v3, v1, Lcom/mobisage/android/MobiSageResMessage;->sourceURL:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 217
    iget-object v2, p0, Lcom/mobisage/android/H;->d:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v1, v1, Lcom/mobisage/android/MobiSageResMessage;->sourceURL:Ljava/lang/String;

    invoke-virtual {v2, v1}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 219
    :cond_0
    iget-object v1, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    iget-object v2, p1, Lcom/mobisage/android/MobiSageMessage;->c:Ljava/util/UUID;

    invoke-virtual {v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 220
    invoke-direct {p0}, Lcom/mobisage/android/H;->b()V

    .line 221
    return-void
.end method

.method protected final finalize()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Throwable;
        }
    .end annotation

    .prologue
    .line 39
    invoke-super {p0}, Ljava/lang/Object;->finalize()V

    .line 40
    iget-object v0, p0, Lcom/mobisage/android/H;->d:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentHashMap;->clear()V

    .line 41
    iget-object v0, p0, Lcom/mobisage/android/H;->b:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentHashMap;->clear()V

    .line 42
    iget-object v0, p0, Lcom/mobisage/android/H;->c:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentHashMap;->clear()V

    .line 43
    return-void
.end method
